package com.cn.bean.pojo.PartsManagement;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@TableName("BusinessTypeTable")
public class BusinessTypeTable {
    private int autoid;
    private int ID;
    private String code;
    private String name;
    private String description;
    private int status;
    private int level;
    private int parentID;
    private int isLeaf;
    private String label;
    private int page;
    private int limit;
    private int total;
    private List<BusinessTypeTable> children = new ArrayList<>();
    public void addChild(BusinessTypeTable child) {
        children.add(child);
    }
}